package org.example.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.example.model.SysUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(tags = "用户模块")
@RequestMapping("/api")
public interface UserService {

    @ApiOperation("根据用户名查询用户信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "userName", value = "用户名", dataType = "string", required = true, type = "path")
    })
    @GetMapping("/user/{userName}")
     public SysUser getUserByUsername(@PathVariable("userName") String username);
}
